﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo1
{
    public class PlayerManager : List<Player>
    {
        public static PlayerManager I  = new PlayerManager();

        Player GetPlayerByMapHandle( MapHandle mapHandle)
        {
            foreach (Player p in this)
            {
                if (p._MapHandle == mapHandle)
                    return p;
            }
            return null;
        }

    }
}
